package com.sylli.oeuf.server.game.logic.invocation;

import com.sylli.oeuf.server.game.logic.BattleActor;

public class WatchMPInvocationCondition extends WatchValueInvocationCondition {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8741976955218312052L;

	public WatchMPInvocationCondition(boolean isCheckGreaterThan,
			int againstValue) {
		super(isCheckGreaterThan, againstValue);
	}

	@Override
	public int getCurrentValue(int invocationRank, BattleActor caster) {
		return (int) ((caster.getCurrMana() / (float)caster.getMaxMana()) * 100);
	}

}
